home *** CD-ROM | disk | FTP | other *** search
/ ERiC KRoLL - Fetish / ERiC KRoLL - Fetish.iso / mac / KROLL.DIR / 00003_Field_3.txt < prev   
Text File  |  1995-12-15  |  2KB  |  67 lines

  1. FileIO(mDescribe)
  2. -- Factory: FileIO ID:1020
  3. --FileIO, Tool, 1.5.0 , 31mar92 
  4. --┬⌐ 1989-1992 MacroMind, Inc.
  5. --by John Thompson and Al McNeil
  6. ---------------------------------------------------------------------
  7. ---------------------------------------------------------------------
  8. --=METHODS=--
  9. --
  10. ISS    mNew, mode, fileNameOrType    --Creates a new instance of the XObject.
  11. --    Mode can be : 
  12. --        "read"     - Read "fileName" 
  13. --        "?read"     - Select and Read "fileType" 
  14. --        "write"     - Write "fileName" 
  15. --        "?write"     - Select and Write "fileName" 
  16. --        "append"     - Append "fileName" 
  17. --        "?append" - Select and Append "fileName" 
  18. --    FileType for ?read can be : 
  19. --         "TEXT" - standard file type
  20. --         "trak" - cd track type
  21. --         etc... - Any four character combination.
  22. --
  23. X    mDispose    --Disposes of XObject instance.
  24. S    mName    --Returns the name of the XObject.
  25. II    mWriteChar, charNum --Writes a single character. Returns error code.
  26. IS    mWriteString, string    --Writes out a string of chars. Returns error code.
  27. I    mReadChar     --Returns a single character.
  28. S    mReadWord     --Returns the next word of an input file.
  29. S    mReadLine    --Returns the next line of an input file.
  30. S    mReadFile    --Returns the remainder of the file.
  31. --
  32. SSS    mReadToken, breakString, skipString
  33. --            --breakstring designates character (or token) that signals to stop reading.
  34. --            --skipstring designates what characters (or tokens) not to read.
  35. I    mGetPosition    --Returns the file position.
  36. II    mSetPosition, newPos    --Sets the file position. Returns error code.
  37. I    mGetLength    --Returns the number of chars in the file.
  38. ISS    mSetFinderInfo, typeString, creatorString    --Sets the finder info. Returns error code.
  39. S    mGetFinderInfo    --Gets the finder info.
  40. S    mFileName    --Returns the name of the file.
  41. I    mDelete        --Delete the file and dispose of me.
  42. I       mStatus  --Returns result code of the last file io activity
  43. --
  44. SI    +mError, errorCode    --Returns error message string.
  45. -- Possible error codes: 
  46. --    -33 :: File directory full
  47. --    -34 :: Volume full
  48. --    -35 :: Volume not found
  49. --    -36 :: I/O Error
  50. --    -37 :: Bad file name
  51. --    -38 :: File not open
  52. --    -42 :: Too many files open
  53. --    -43 :: File not found
  54. --    -56 :: No such drive
  55. --    -65 :: No disk in drive
  56. --    -120 :: Directory not found
  57. V       mReadPICT
  58. ----
  59.  
  60.  
  61. showXlib
  62. -- XLibraries:
  63. -- "*Standard.xlib"
  64. --   XObject: FileIO           Id:1020 
  65. --   XObject: SerialPort       Id:200  
  66. --   XObject: XCMDGlue         Id:2020 
  67.